/*
 * @Author: your name
 * @Date: 2021-10-29 21:39:38
 * @LastEditTime: 2021-11-01 13:41:58
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \练习\snake\vite.config.ts
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path';


// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  // 定义别名
  alias: {
    '@': path.resolve(__dirname, 'src'),
    coms: path.resolve(__dirname, 'src/components'),
    assets: path.resolve(__dirname, 'src/assets'),
    router: path.resolve(__dirname, 'src/router'),
    styles: path.resolve(__dirname, 'src/styles'),
    utils: path.resolve(__dirname, 'src/utils'),
    base: path.resolve(__dirname, 'src/baseComponents'),
    hooks: path.resolve(__dirname, 'src/hooks'),
  },
  plugins: [vue()],
})
